const userDao = require("../dao/userDao");
module.exports.findByUsernameAndPwd = async function (username, password) {
    let user = await userDao.findByUsernameAndPwd(username,password);
    if (user && Object.keys(user).length > 0) {
        return { status: 1, user };
       
    } else {
        return { status: 0 };
    }
};